package com.vchello.bean.user;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 
 * @author power
 * 用户进度
 */
@TableName("user_progress")
public class UserProgress extends Model<UserProgress> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@TableField("id")
	private int id;

	@TableField("name")
	private String name;

	@TableField("sort")
	private int sort;

	@TableField("user_id")
	private Long userId;
	
	/**
	 * 标识进度状态， 1：个人新建 ， 2：历史机构备份
	 */
	@TableField("progress_type")
	private int progressType;
	
	public UserProgress() {
		super();
	}

	public UserProgress(String name, int sort, Long userId, int progressType) {
		super();
		this.name = name;
		this.sort = sort;
		this.userId = userId;
		this.progressType = progressType;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public int getProgressType() {
		return progressType;
	}

	public void setProgressType(int progressType) {
		this.progressType = progressType;
	}
	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}